package com.ruoyi.tws.domain;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.MyPlusEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 咨询投诉对象 tws_question
 * 
 * @author ruoyi
 * @date 2022-01-20
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName("tws_question")
public class TwsQuestion extends MyPlusEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    @TableId
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /** 问题内容 */
    @Excel(name = "问题内容")
    private String content;

    /** 回复内容 **/
    @Excel(name = "回复内容")
    private String answer;

    /** 问题类型: 1咨询 2投诉 */
    @Excel(name = "问题类型: 1咨询 2投诉")
    private Integer type;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long driverId;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long companyId;

    /** 1货源方 2司机 */
    @Excel(name = "1货源方 2司机")
    private Integer status;

    /** 创建人名称 */
    @Excel(name = "创建人名称")
    private String userName;

    /** 星级打分 */
    @Excel(name = "星级打分")
    private Integer star;

    @Excel(name = "是否结束")
    private Integer isFinish;

}
